package com.luych.oauth2Center.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "oauth2")
public class Oauth2Config {

    private TokenConfig token;
    private CodeConfig code;

    public TokenConfig getToken() {
        return token;
    }

    public void setToken(TokenConfig token) {
        this.token = token;
    }

    public CodeConfig getCode() {
        return code;
    }

    public void setCode(CodeConfig code) {
        this.code = code;
    }
}
